home *** CD-ROM | disk | FTP | other *** search
/ Amiga Collections: Camelot / Camelot 043 (1989-06)(Swedish User Group of Amiga)(SE)(PD)[WB].zip / Camelot 043 (1989-06)(Swedish User Group of Amiga)(SE)(PD)[WB].adf / zc / tytok.h < prev    next >
C/C++ Source or Header  |  1989-03-08  |  1KB  |  61 lines

  1. /* Copyright (c) 1988 by Sozobon, Limited.  Author: Johann Ruegg
  2.  *
  3.  * Permission is granted to anyone to use this software for any purpose
  4.  * on any computer system, and to redistribute it freely, with the
  5.  * following restrictions:
  6.  * 1) No charge may be made other than reasonable charges for reproduction.
  7.  * 2) Modified versions must be clearly marked as such.
  8.  * 3) The authors are not responsible for any harmful consequences
  9.  *    of using this software, even if they result from defects in it.
  10.  *
  11.  *    tytok.h
  12.  *
  13.  *    keyword token values
  14.  */
  15.  
  16. #ifndef ENUMS
  17. #define K_EXTERN    'A'
  18. #define K_AUTO        'B'
  19. #define K_REGISTER    'C'
  20. #define K_TYPEDEF    'D'
  21. #define K_STATIC    'E'
  22.  
  23. #define ENUM_SC        K_STATIC+1    /* storage class for enum item */
  24. #define HERE_SC        K_STATIC+2    /* storage class for glb def */
  25. #define FIRST_SC    K_EXTERN
  26. #define LAST_SC        K_STATIC
  27.  
  28. #define T_UCHAR        'F'
  29. #define T_ULONG        'G'
  30.  
  31. #define K_LONG        'H'
  32. #define K_SHORT        'I'
  33. #define K_UNSIGNED    'J'
  34.  
  35. #define K_INT        'K'
  36. #define K_CHAR        'L'
  37. #define K_FLOAT        'M'
  38. #define K_DOUBLE    'N'
  39. #define K_VOID        'O'
  40.  
  41. #define FIRST_BAS    T_UCHAR
  42. #define LAST_BAS    K_VOID
  43.  
  44. #define K_UNION        'P'
  45. #define K_ENUM        'Q'
  46. #define K_STRUCT    'R'
  47. #else
  48. #define FIRST_SC    K_EXTERN
  49. #define LAST_SC        K_STATIC
  50. #define FIRST_BAS    T_UCHAR
  51. #define LAST_BAS    K_VOID
  52. enum {
  53.     K_EXTERN = 'A', K_AUTO, K_REGISTER, K_TYPEDEF, K_STATIC,
  54.     ENUM_SC, HERE_SC,
  55.     T_UCHAR, T_ULONG,
  56.     K_LONG, K_SHORT, K_UNSIGNED,
  57.     K_INT, K_CHAR, K_FLOAT, K_DOUBLE, K_VOID,
  58.     K_UNION, K_ENUM, K_STRUCT
  59. };
  60. #endif
  61.